home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’91 / ColorHack 1991 / the hack / read me first < prev    next >
Encoding:
Text File  |  1991-06-21  |  1.1 KB  |  32 lines  |  [TEXT/MPS ]

  1. The 'ColorHack' color text hack for MPW 3.2 and Symantec C
  2.  
  3. Written by Ray Sanders and by Steve Antonakes at MacHack 1991.
  4.  
  5.  
  6. This hack implements the ability to have your C reserved keywords show up
  7. in color on a MacII. The requirements are that your machine has Color Quickdraw
  8. and 4 or 8 bit color is turned on.
  9.  
  10. To install this hack, paste the following three resources into a copy
  11. of the shell application for your development environment
  12. (MPW 3.x or Think C 4.x):
  13.     WDEF    0
  14.     GRAF    0
  15.     sCOL    128
  16. then start your program and open a C language program file. The ANSI 
  17. reserved words should now be in color.
  18. If you want to add (or remove) words, go into the ColorHack resource
  19. file with ResEdit and open the sCOL/128 resource. Each entry has a
  20. string name and a three part R/G/B color specification. The only colors
  21. that will work are: red, green, blue, cyan, yellow, magenta, white, and black.
  22.  
  23.  
  24. If you need to recompile any of the source code, use MPW with the following commands:
  25.  
  26.  
  27. asm xxWDEF.a
  28. link xxWDEF.a.o -o xxWDEF.rsrc -t '????' -rt WDEF=0
  29. asm xxGRAF.a
  30. c xxCSEARCH.c -b
  31. link xxGRAF.a.o xxCSEARCH.c.o -o xxGRAF.rsrc -t '????' -rt GRAF=0
  32.